import { request, METHOD } from '@/utils/request';
// import qs from 'qs';

// 获取邮件首页列表
export const getNotificationApi = params => {
  return request('/tool/notification/list', METHOD.GET, params);
};
// 获取CMC信息
export const getCmcEventListApi = params => {
  return request('/tool/notification/getCmcEventList', METHOD.GET, params);
};
// 获取FMC信息

export const getFmcEventListApi = params => {
  return request('/tool/notification/getFmcEventList', METHOD.GET, params);
};

export const getTemplateListByParamsApi = params => {
  return request('/rep/repReportTemplate/getRepReportTemplateListByCategory', METHOD.GET, params);
};

// 获取 Fault item的穿梭框数据
export const getMaintenanceApi = params => {
  return request('/tool/event/maintenance/list', METHOD.POST, params);
};

// 获取维修手册章节列表信息
export const getAtaListAllApi = params => {
  return request('/ftm/ftmAta/getAtaListAll', METHOD.GET, params);
};
// 查询机场
export const getAirportDetailApi = params => {
  return request('/ftm/ftmAirport/getAirportDetail', METHOD.GET, params);
};

export const deleteItemsApi = id => {
  return request(`/tool/notification/delete/${id}`, METHOD.DELETE);
};
// 新增邮件接口
export const submitEmailApi = params => {
  return request('/tool/notification/addOrUpdate', METHOD.POST, params);
};
// 获取邮件模板
export const getEmailTemplateApi = params => {
  return request('/tool/notification/getEmailTemplate', METHOD.GET, params);
};
